package com.zym.aspect;

import com.zym.annon.Log;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
/**
 * 操作日志记录处理
 *
 * @author slkj
 */
@Aspect
@Component
public class LogAspect {
    /*
    日志
     */
    private static final Logger log = LoggerFactory.getLogger(LogAspect.class);



    /**
     * 处理请求前执行
     */
    @Before(value = "@annotation(controllerLog)")
    public void boBefore(JoinPoint joinPoint, Log controllerLog) {
        System.out.println("log处理请求前执行");
    }


}
